<%-- 
    Document   : Loading
    Created on : 21 Mei 10, 7:35:00
    Author     : surya
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
        Login Success
        </title>
    </head>
    <body style="font-size:30pt;font-family:arial;color:blue">
        <h2><center>Welcome</center></h2>
        <p>
        <center>
                Login success....
                <br>
                Please wait for a few second....
                <br>
                your page will be automatically redirect....
        </center>
        </p>

            <%
            if (session.getAttribute("jabatan").equals("admin")) {
            %>
            <script type="text/javascript">
                setTimeout('Redirect()',3000);
                function Redirect()
                {
                    location.href = 'hal_admin.jsp';
                }
            </script>
            <%
            } else if (session.getAttribute("jabatan").equals("dosen")){
            %>
            <script type="text/javascript">
                setTimeout('Redirect()',3500);
                function Redirect()
                {
                    location.href = 'hal_dosen.jsp';
                }
            </script>
            <%
            } else {
            %>
            <script type="text/javascript">
                setTimeout('Redirect()',4000);
                function Redirect()
                {
                    location.href = 'hal_mahasiswa.jsp';
                }
            </script>
            <%
            }
            %>
    </body>
</html>
